package com.woniuxy.api;

import com.woniuxy.common.Result;
import com.woniuxy.form.ModifyComplainForm;
import com.woniuxy.form.OrderComplainForm;
import org.springframework.web.bind.annotation.*;

public interface OrderComplainApi {
    //订单投诉

    /**
     * 用户调用的订单投诉生成接口
     * @param orderComplainForm
     * @return
     */
    @PostMapping("/createOrderComplain")
    Result createOrderComplain(@RequestBody OrderComplainForm orderComplainForm);

    /**
     * 平台操作员协调后 修改该表信息
     * @param modifyComplainForm
     * @return
     */
    @PutMapping("/modifyOrderComplain")
    Result modifyOrderComplain(@RequestBody ModifyComplainForm modifyComplainForm);

    /**
     * 根据id删除订单投诉
     * @param id
     * @return
     */
    @DeleteMapping("/delOrderComplain")
    Result delOrderComplain(@RequestParam(value = "id")Integer id);

    /**
     * 分页展示订单投诉信息
     * @return
     */
    @GetMapping("/pageOrderComplain")
    Result pageOrderComplain(@RequestParam(value = "pageIdx",required = false,defaultValue="1")Integer pageIdx);

    /**
     * 状态分页展示订单投诉信息
     * @return
     */
    @GetMapping("/pageOrderComplainByStatus")
    Result pageOrderComplainByStatus(@RequestParam(value = "pageIdx",required = false,defaultValue="1")Integer pageIdx,
                                     @RequestParam(value = "status")Integer status);




}
